﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ModelLayer
{
	public class Reservation
	{
		private string name, phoneNr;
		private int id;
		private Ticket ticket;

		public Reservation()
		{
			name = "";
			phoneNr = "";
			id = -1;
			ticket = new Ticket();
		}

		public Reservation(int id, string name, string phoneNr, Ticket ticket)
		{
			this.id = id;
			this.name = name;
			this.phoneNr = phoneNr;
			this.ticket = ticket;
		}

		public Ticket Ticket
		{
			get
			{
				return ticket;
			}
			set
			{
				ticket = value;
			}
		}

		public int Id
		{
			get
			{
				return id;
			}
			set
			{
				id = value;
			}
		}

		public string Name
		{
			get
			{
				return name;
			}
			set
			{
				name = value;
			}
		}

		public string PhoneNr
		{
			get
			{
				return phoneNr;
			}
			set
			{
				phoneNr = value;
			}
		}
	}
}
